/**
 * 封装 axios 请求模块
 */
import axios from "axios"
const http = axios.create({
    baseURL: 'http://h.yuanfudagroup.com' // 基础路径
})
// 请求拦截器
http.interceptors.request.use(config => {
    const versions = "1";
    const tokens = "DzURx9UhgzhfAQ9bzWh4sPsf7PQLb0YYooy/dTL0pD0aA1ZLMN19OBXFh8G4eikW";
    const dids = "ffffffff-d074-4990-0000-000035013b0b";
    const types = "ios";
    const signs = "phJTlG8mM5mka5TbE+XVZsMgwvh+g5ECU4GzlgAOHz7lUR/HHZmTsVvBzEGi3HLnN+Il5IxYifq4AfRXWfoYeJODnYYt0RKnsL/0KrcgKtYsoJ0VqPWiOl5jh9xbad0cLmOt2SKYrtiG5aYZtySytDVjb8SOlAEa0/QXTu+1mbR5dop5Nt6q1fRoVWomnNipHb77P0zXrcea4WY0QSGR1g==";
    const times = "160670761636";
    const models = "vivo X5M";
    config.headers = {
        version: versions,
        token: tokens,
        did: dids,
        type: types,
        sign: signs,
        time: times,
        model: models,
    }
    return config
})

// 列表数据
export function shoppingList() {
    return http({
        url: '/api/v1/more/getjing',
        method: 'post',
    })
}